import request from '@/utils/request'
import BaseUrl from '@/utils/BaseUrl'

/**
 * @description: 字典管理-城市字典API
 * @author:  孔垂云
 * @version: 1.0
 * @date: 2020-08-03 18:44:09
 */

/**
 * 列表
 * @param query
 * @returns
 */
export function listDicCity(query) {
  return request({
    url: BaseUrl.API_DIC + '/dic/city/list',
    data: query
  })
}

/**
 * 删除
 * @param data
 * @returns
 */
export function deleteDicCity(data) {
  return request({
    url: BaseUrl.API_DIC  + '/dic/city/delete',
    data: data
  })
}

/**
 * 增加
 * @param data
 * @returns
 */
export function addDicCity(data) {
  return request({
    url: BaseUrl.API_DIC  + '/dic/city/add',
    data: data
  })
}

/**
 * 修改
 * @param data
 * @returns
 */
export function updateDicCity(data) {
  return request({
    url: BaseUrl.API_DIC  + '/dic/city/update',
    data: data
  })
}

/**
 * 获取单个
 * @param query
 * @returns
 */
export function getDicCity(query) {
  return request({
    url: BaseUrl.API_DIC  + '/dic/city/get',
    data: query
  })
}
